<?php

namespace App\Http\Controllers;

use App\Model\Page;
use Illuminate\Http\Request;

class IndexController extends Controller
{
    //
    function index(){
        $pages = Page::paginate(10);


        return view('welcome',['pages' => $pages]);
    }
}
